import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';
import Element from 'element-ui'
import store from './store'
import './assets/styles/element-variables.scss'
Vue.config.productionTip = false
Vue.use(ViewUI)
Vue.use(Element)
import './permission' // permission control
import {
  parseTime,
  resetForm,
  addDateRange,
  checkDate,
  calculateDate,
  lessenPrice,
  largenPrice,
  formatLocation,
  formatTaskItemList,
  selectDictLabel,
  selectDictLabels,
  handleTree,
  transRedundant,
  transBlobDownload
} from "@/utils";
Vue.prototype.parseTime = parseTime
Vue.prototype.resetForm = resetForm
Vue.prototype.addDateRange = addDateRange
Vue.prototype.checkDate = checkDate
Vue.prototype.calculateDate = calculateDate
Vue.prototype.lessenPrice = lessenPrice
Vue.prototype.largenPrice = largenPrice
Vue.prototype.formatLocation = formatLocation
Vue.prototype.formatTaskItemList = formatTaskItemList
Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.selectDictLabels = selectDictLabels
Vue.prototype.handleTree = handleTree
Vue.prototype.transRedundant = transRedundant
Vue.prototype.transBlobDownload = transBlobDownload

new Vue({
  render: h => h(App),
  router,
  store,
}).$mount('#app')
